package z.t.b.db.meta;

import java.util.ArrayList;
import java.util.List;

/**
 * xx
 *
 * @Description TODO
 * @Author ztb
 * @Date 2024/3/23 16:55
 * @Version 1.0
 */
public class Index {

    private String indexName;
    private List<String> columns;
    /**
     * 0:唯一索引;1:普通索引:
     */
    private String notUnique = "0";

    private Table owner;

    public Index(Table owner) {
        columns = new ArrayList<>();
        this.owner = owner;
    }

    public Table getOwner() {
        return owner;
    }

    public String getIndexName() {
        return indexName;
    }

    public void setIndexName(String indexName) {
        this.indexName = indexName;
    }

    public List<String> getColumns() {
        return columns;
    }

    public void setColumns(List<String> columns) {
        this.columns = columns;
    }

    public String getNotUnique() {
        return notUnique;
    }

    public void setNotUnique(String notUnique) {
        this.notUnique = notUnique;
    }
}
